Piwik\Url D

Total Complexity 135
Dependencies 10
Dependents 72
Total lines 747
Lines of code 391
Logical lines of code 220
Comment lines 224
Methods 40
Properties 0

Methods 40

Method Rating Maintainability Complexity Lines of code
getCurrentScriptName()
A
47 15 34
getCurrentSchemeFromRequestHeader()
A
56 12 17
isValidHost()
A
47 9 34
isLocalUrl()
A
54 8 19
isHostInUrls()
S
55 7 21
getQueryStringFromParameters()
S
56 6 17
getHostFromServerNameVar()
S
60 6 13
getHostFromServerVariable()
S
60 6 13
saveHostsnameInConfig()
S
56 5 19
getHost()
S
63 5 10
redirectToUrlNoExit()
S
59 4 14
getCurrentHost()
S
60 4 13
isSecureConnectionAssumedByPiwikButNotForcedYet()
S
67 4 8
getCurrentQueryStringWithParametersModified()
S
62 3 11
getHostsFromConfig()
S
63 3 11
isLocalHost()
S
62 3 11
getTrustedHostsFromConfig()
S
65 3 9
getCurrentQueryString()
S
65 3 9
redirectToReferrer()
S
69 2 7
redirectToHttps()
S
67 2 8
getReferrer()
S
71 2 6
getCurrentScheme()
S
72 2 6
getCurrentScriptPath()
S
64 2 9
getHostFromUrl()
S
68 2 7
getHostSanitized()
S
70 2 6
isPiwikConfiguredToAssumeSecureConnection()
S
75 1 4
isSecureConnectionLikelyNotUsed()
S
79 1 3
getCurrentUrlWithoutFileName()
S
73 1 5
getLocalHostnames()
S
78 1 3
getAlwaysTrustedHosts()
S
80 1 3
saveCORSHostnameInConfig()
S
78 1 3
getCorsHostsFromConfig()
S
78 1 3
getTrustedHosts()
S
80 1 3
setHost()
S
72 1 5
redirectToUrl()
S
74 1 5
getCurrentUrlWithoutQueryString()
S
72 1 5
getQueryStringFromUrl()
S
79 1 3
saveTrustedHostnameInConfig()
S
78 1 3
getArrayFromCurrentQueryString()
S
73 1 5
getCurrentUrl()
S
71 1 6